// src/api/constanttype.js
import service from '@/utils/request';

// 获取常数类型列表
export const getConstantTypeList = () => {
  return service.get('/constanttype/detail/all');
};

// 新增常数类型
export const addConstantType = (data) => {
  return service.post('/constanttype/add', data);
};

// 更新常数类型
export const updateConstantType = (data) => {
  return service.post('/constanttype/update', data);
};

// 删除常数类型
export const deleteConstantType = (data) => {
  return service.post('/constanttype/delete', data);
};